/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package merlion.common.session.stateless;

import javax.ejb.Local;
import merlion.common.entity.DocFile;
import merlion.crm.sopm.entity.SalesOrder;
import merlion.crm.sopm.entity.SalesQuotation;
import merlion.frm.bpm.entity.Invoice;
import merlion.frm.bpm.entity.Receipt;
import merlion.frm.bpm.entity.SupplierInvoice;
import merlion.frm.bpm.entity.SupplierReceipt;
import merlion.scm.rmpm.entity.RawMaterialPurchaseOrder;
import merlion.scm.rmpm.entity.RawMaterialSalesOrder;

/**
 *
 * @author Zhang Ying
 */
@Local
public interface FileManagerSessionLocal {
    public boolean saveProfilePicture(Long staffId, DocFile myDoc);
    
    public DocFile getProfileImageById(String idStr);

    public boolean haveProfilePage(Long id);
    
    public DocFile getProfileImage(Long staffId);

    public boolean uploadFileIntoPurchaseOrder(DocFile myDoc, String tempPOID);

    public boolean uploadFileIntoSalesInquiry(DocFile myDoc, String tempPOID);

    public boolean uploadFileIntoSalesQuotation(DocFile myDoc, String tempPOID);
    
    public SupplierInvoice uploadFileIntoSupplierInvoice(DocFile myDoc, SupplierInvoice invoice);
    
    public SupplierReceipt uploadFileIntoSupplierReceipt(DocFile myDoc, SupplierReceipt receipt);
    
    public RawMaterialSalesOrder uploadFileIntoRawMaterialSalesOrder(DocFile myDoc, RawMaterialSalesOrder rmso);
    
    // for export pdf
    
    public SalesQuotation getSalesQuotationById(Long id) ;
    public SalesOrder getSalesOrderById(Long id);
    public Invoice getInvoiceById(Long id);
    public Receipt getReceiptById(Long id);

    public DocFile getDocFileSQ(String tempPOID);

    public DocFile getDocFileSI(String tempPOID);

    public DocFile getDocFilePO(String tempPOID);

    public RawMaterialPurchaseOrder getRawMaterialPurchaseOrderById(Long valueOf);
}
